·
<script setup>
import { ref, reactive, watch } from "vue"
const props = defineProps(['visiable', 'choose'])
const emit = defineEmits(['close', 'sendOut'])
const acWrap = ref()
const isShow = ref(false)
const form = reactive({
  reason: ''
})
const close = () => {
  emit('close')
}
watch(() => props.visiable, (val) => {
  isShow.value = val
})
</script>

<template>
  <el-dialog v-model="isShow" title="审核" width="600" @close="close">
    <div class="ac-wrap" ref="acWrap">
      <span>理由：</span>
      <el-input v-model="form.reason" type="textarea"></el-input>
    </div>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="isShow = false">取消</el-button>
        <el-button type="primary" @click="isShow = false">
          同意
        </el-button>
        <el-button type="warning" @click="isShow = false">
          拒绝
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<style scoped>
.ac-wrap {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  position: relative;
  background-color: #fff;
  overflow: auto;
  padding: 0 20px;
}
</style>